<#assign contextPath=springMacroRequestContext.getContextPath() />
<#import "/public/frame/main.html" as frame />
<@frame.head "南航明珠商城-异常兑换监控管理">
</@frame.head>
<style>
.select-box{
width:80px
}
.input-text{
width:50px
}
.table td{
   padding-left:2em;
}
</style>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 后台管理中心 <span class="c-gray en">&gt;</span> 监控管理 <span class="c-gray en">&gt;</span> 异常兑换监控管理 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="${contextPath}/monitor/monitor_info" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
	<b style="font-size: 16px;">设置兑换异常条件：</b>（注：非实物商品包含虚拟商品和机票优惠券）
<form method="post" name="save_form"  id="save_form"  action="${contextPath}/monitor/add_monitor_info" onsubmit="return checkRule()" >    
    <div class="text-c">
    <table class="table">
      <tr>
        <th>按会员兑换商品数量判定：</th>
      </tr>
      
      
      <tr>
      <td>			
      <input type="checkbox" name="monitorSolidProductNumCommand.isCheck" value="1" <#if monitorCommand.monitorSolidProductNumCommand.isCheck == 1>checked="checked"</#if>/>
	      单笔订单包含
	       <span class="select-box radius size-S">
           <select class="select"  name="monitorSolidProductNumCommand.judge" >
           <option value>请选择</option>
            <#list judgmentRule?keys as key>
                  <option value="${key}" <#if key==monitorCommand.monitorSolidProductNumCommand.judge>selected="selected"</#if>>${judgmentRule[key]}</option> 
            </#list>
           </select>
           </span>
      <input type="text" class="input-text  radius size-S" name="monitorSolidProductNumCommand.productNum" value="${monitorCommand.monitorSolidProductNumCommand.productNum}" onkeyup="this.value=this.value.replace(/\D/g,'');"/>
	  个实物商品
	  </td>
      </tr>
      
      
      <tr>
      <td>		
      <input type="checkbox" name="monitorVirtualProductNumCommand.isCheck" value="1" <#if monitorCommand.monitorVirtualProductNumCommand.isCheck == 1>checked="checked"</#if>/>
	      单笔订单包含
	       <span class="select-box radius size-S">
           <select class="select"  name="monitorVirtualProductNumCommand.judge" >
           <option value>请选择</option>
            <#list judgmentRule?keys as key>
                  <option value="${key}" <#if key==monitorCommand.monitorVirtualProductNumCommand.judge>selected="selected"</#if>>${judgmentRule[key]}</option> 
            </#list>
           </select>
           </span>
      <input type="text" class="input-text  radius size-S" name="monitorVirtualProductNumCommand.productNum" value="${monitorCommand.monitorVirtualProductNumCommand.productNum}" onkeyup="this.value=this.value.replace(/\D/g,'');"/>
	  个非实物商品
      </td>
      </tr>
      
      
      
      
      <tr>
      <td>
         <input type="checkbox" name="monitorTimeSolidProductNumCommand.isCheck" value="1" <#if monitorCommand.monitorTimeSolidProductNumCommand.isCheck == 1>checked="checked"</#if>/>
         <input type="text" class="input-text  radius size-S" onkeyup="this.value=this.value.replace(/\D/g,'');" name="monitorTimeSolidProductNumCommand.timeNum" value="${monitorCommand.monitorTimeSolidProductNumCommand.timeNum }"/>
		 小时内，兑换同款实物商品
	       <span class="select-box radius size-S">
           <select class="select"  name="monitorTimeSolidProductNumCommand.judge" >
           <option value>请选择</option>
            <#list judgmentRule?keys as key>
                  <option value="${key}" <#if key==monitorCommand.monitorTimeSolidProductNumCommand.judge>selected="selected"</#if>>${judgmentRule[key]}</option> 
            </#list>
           </select>
           </span>	
		 <input type="text" class="input-text  radius size-S" onkeyup="this.value=this.value.replace(/\D/g,'');" name="monitorTimeSolidProductNumCommand.productNum" value="${monitorCommand.monitorTimeSolidProductNumCommand.productNum}"/>									
         个
	  </td>
      </tr>
      
      
      
      <tr>
      <td>
         <input type="checkbox" name="monitorTimeVirtualProductNumCommand.isCheck" value="1" <#if monitorCommand.monitorTimeVirtualProductNumCommand.isCheck == 1>checked="checked"</#if>/>
         <input type="text" class="input-text  radius size-S" onkeyup="this.value=this.value.replace(/\D/g,'');" name="monitorTimeVirtualProductNumCommand.timeNum" value="${monitorCommand.monitorTimeVirtualProductNumCommand.timeNum }"/>
		 小时内，兑换非同款实物商品
	       <span class="select-box radius size-S">
           <select class="select"  name="monitorTimeVirtualProductNumCommand.judge" >
           <option value>请选择</option>
            <#list judgmentRule?keys as key>
                  <option value="${key}" <#if key==monitorCommand.monitorTimeVirtualProductNumCommand.judge>selected="selected"</#if>>${judgmentRule[key]}</option> 
            </#list>
           </select>
           </span>	
		 <input type="text" class="input-text  radius size-S" onkeyup="this.value=this.value.replace(/\D/g,'');" name="monitorTimeVirtualProductNumCommand.productNum" value="${monitorCommand.monitorTimeVirtualProductNumCommand.productNum}"/>									
         个
	  </td>
      </tr>
      
      
      <tr>
        <th>按会员兑换频率判定：</th>
      </tr>
      
      <tr>
      <td>
            <input type="checkbox" name="monitorBendBuyNumCommand.isCheck" value="1" <#if monitorCommand.monitorBendBuyNumCommand.isCheck == 1>checked="checked"</#if>/>
                                     同一会员在
      		<input type="text" class="input-text  radius size-S"  onkeyup="this.value=this.value.replace(/\D/g,'');" name="monitorBendBuyNumCommand.dateNum" value="${monitorCommand.monitorBendBuyNumCommand.dateNum }"/>
			个自然日内兑换商品
	       <span class="select-box radius size-S">
           <select class="select"  name="monitorBendBuyNumCommand.judge" >
           <option value>请选择</option>
            <#list judgmentRule?keys as key>
                  <option value="${key}" <#if key==monitorCommand.monitorBendBuyNumCommand.judge>selected="selected"</#if>>${judgmentRule[key]}</option> 
            </#list>
           </select>
           </span>
           <input type="text" class="input-text  radius size-S"  onkeyup="this.value=this.value.replace(/\D/g,'');" name="monitorBendBuyNumCommand.buyNum" value="${monitorCommand.monitorBendBuyNumCommand.buyNum}"/>
			次						
      </td>
      </tr>
      
      
      <tr>
      <td>
      		<input type="checkbox" name="monitorBendBuyDateCommand.isCheck" value="1" <#if monitorCommand.monitorBendBuyDateCommand.isCheck == 1>checked="checked"</#if>/>
				同一会员连续
			<input type="text" class="input-text  radius size-S" onkeyup="this.value=this.value.replace(/\D/g,'');" name="monitorBendBuyDateCommand.dateNum" value="${monitorCommand.monitorBendBuyDateCommand.dateNum}"/>												
                                               个自然日内兑换商品
      </td>
      </tr>
      
      
      <tr>
        <th>按会员兑换所需里程数判定：</th>
      </tr>
      
      
      <tr>
      <td>
        <input type="checkbox" name="monitorSolidMileageCommand.isCheck" value="1" <#if monitorCommand.monitorSolidMileageCommand.isCheck == 1>checked="checked"</#if>/>
                                 实物商品订单中不包含
	       <span class="select-box radius size-S">
           <select class="select"  name="monitorSolidMileageCommand.judgeProduct" >
           <option value>请选择</option>
            <#list judgmentRule?keys as key>
                  <option value="${key}" <#if key==monitorCommand.monitorSolidMileageCommand.judgeProduct>selected="selected"</#if>>${judgmentRule[key]}</option> 
            </#list>
           </select>
           </span>	
           <input type="text" class="input-text  radius size-S" onkeyup="this.value=this.value.replace(/\D/g,'');" name="monitorSolidMileageCommand.productMileage" value="${monitorCommand.monitorSolidMileageCommand.productMileage}"/>								
           里程的单品，但该会员（单笔或全天）总额
	       <span class="select-box radius size-S">
           <select class="select"  name="monitorSolidMileageCommand.judgeOrder" >
           <option value>请选择</option>
            <#list judgmentRule?keys as key>
                  <option value="${key}" <#if key==monitorCommand.monitorSolidMileageCommand.judgeOrder>selected="selected"</#if>>${judgmentRule[key]}</option> 
            </#list>
           </select>
           </span>
		   		<input type="text" class="input-text  radius size-S" onkeyup="this.value=this.value.replace(/\D/g,'');" name="monitorSolidMileageCommand.orderMileage" value="${monitorCommand.monitorSolidMileageCommand.orderMileage}"/>	
		   里程
      </td>
      </tr>
      
	  <tr>
      <td>
        <input type="checkbox" name="monitorVirtualMileageCommand.isCheck" value="1" <#if monitorCommand.monitorVirtualMileageCommand.isCheck == 1>checked="checked"</#if>/>
      非实物商品订单中不包含
	       <span class="select-box radius size-S">
           <select class="select"  name="monitorVirtualMileageCommand.judgeProduct" >
           <option value>请选择</option>
            <#list judgmentRule?keys as key>
                  <option value="${key}" <#if key==monitorCommand.monitorVirtualMileageCommand.judgeProduct>selected="selected"</#if>>${judgmentRule[key]}</option> 
            </#list>
           </select>
           </span>	
		   <input type="text" class="input-text  radius size-S" onkeyup="this.value=this.value.replace(/\D/g,'');" name="monitorVirtualMileageCommand.productMileage" value="${monitorCommand.monitorVirtualMileageCommand.productMileage}"/>
			里程的单品，但该会员（单笔或全天）总额
	       <span class="select-box radius size-S">
           <select class="select"  name="monitorVirtualMileageCommand.judgeOrder" >
           <option value>请选择</option>
            <#list judgmentRule?keys as key>
                  <option value="${key}" <#if key==monitorCommand.monitorVirtualMileageCommand.judgeOrder>selected="selected"</#if>>${judgmentRule[key]}</option> 
            </#list>
           </select></span>
		   		<input type="text" class="input-text  radius size-S" onkeyup="this.value=this.value.replace(/\D/g,'');" name="monitorVirtualMileageCommand.orderMileage" value="${monitorCommand.monitorVirtualMileageCommand.orderMileage}"/>						
           里程								
      </td>
      </tr> 
      
	  
	  <tr>
      <td>
      	  <input type="checkbox" name="monitorSolidMileageRemoveOneCommand.isCheck" value="1" <#if monitorCommand.monitorSolidMileageRemoveOneCommand.isCheck == 1>checked="checked"</#if>/>
    		实物商品订单中包含一个或多个
	       <span class="select-box radius size-S">
           <select class="select"  name="monitorSolidMileageRemoveOneCommand.judgeProduct" >
           <option value>请选择</option>
            <#list judgmentRule?keys as key>
                  <option value="${key}" <#if key==monitorCommand.monitorSolidMileageRemoveOneCommand.judgeProduct>selected="selected"</#if>>${judgmentRule[key]}</option> 
            </#list>
           </select>
           </span>
		   	<input type="text" class="input-text  radius size-S" onkeyup="this.value=this.value.replace(/\D/g,'');" name="monitorSolidMileageRemoveOneCommand.productMileage" value="${monitorCommand.monitorSolidMileageRemoveOneCommand.productMileage}"/>
			里程的单品，除去金额最大的一个单品后，会员（单笔或全天）总额
	       <span class="select-box radius size-S">
           <select class="select"  name="monitorSolidMileageRemoveOneCommand.judgeOrder" >
           <option value>请选择</option>
            <#list judgmentRule?keys as key>
                  <option value="${key}" <#if key==monitorCommand.monitorSolidMileageRemoveOneCommand.judgeOrder>selected="selected"</#if>>${judgmentRule[key]}</option> 
            </#list>
           </select>
           </span>
           	<input type="text" class="input-text  radius size-S" onkeyup="this.value=this.value.replace(/\D/g,'');" name="monitorSolidMileageRemoveOneCommand.orderMileage" value="${monitorCommand.monitorSolidMileageRemoveOneCommand.orderMileage}"/>
				里程						
      </td>
      </tr>
	  
      
      <tr>
      <td>
      	  <input type="checkbox" name="monitorVirtualMileageRemoveOneCommand.isCheck" value="1" <#if monitorCommand.monitorVirtualMileageRemoveOneCommand.isCheck == 1>checked="checked"</#if>/>
    		非实物商品订单中包含一个或多个
	       <span class="select-box radius size-S">
           <select class="select"  name="monitorVirtualMileageRemoveOneCommand.judgeProduct" >
           <option value>请选择</option>
            <#list judgmentRule?keys as key>
                  <option value="${key}" <#if key==monitorCommand.monitorVirtualMileageRemoveOneCommand.judgeProduct>selected="selected"</#if>>${judgmentRule[key]}</option> 
            </#list>
           </select>
           </span>
		   	<input type="text" class="input-text  radius size-S" onkeyup="this.value=this.value.replace(/\D/g,'');" name="monitorVirtualMileageRemoveOneCommand.productMileage" value="${monitorCommand.monitorVirtualMileageRemoveOneCommand.productMileage}"/>
			里程的单品，除去金额最大的一个单品后，会员（单笔或全天）总额
	       <span class="select-box radius size-S">
           <select class="select"  name="monitorVirtualMileageRemoveOneCommand.judgeOrder" >
           <option value>请选择</option>
            <#list judgmentRule?keys as key>
                  <option value="${key}" <#if key==monitorCommand.monitorVirtualMileageRemoveOneCommand.judgeOrder>selected="selected"</#if>>${judgmentRule[key]}</option> 
            </#list>
           </select>
           </span>
           	<input type="text" class="input-text  radius size-S" onkeyup="this.value=this.value.replace(/\D/g,'');" name="monitorVirtualMileageRemoveOneCommand.orderMileage" value="${monitorCommand.monitorVirtualMileageRemoveOneCommand.orderMileage}"/>
				里程						
      </td>
      </tr>
      
		<tr>
		<th>
			二级判断：
		</th>
		</tr>
		
		<tr>
		<td>
			  <input type="checkbox" name="checkMemberInfo" value="1" <#if monitorCommand.checkMemberInfo == 1>checked="checked"</#if>/>
			  如果触发上面的监控规则，则实物订单判断会员收货姓名及手机号是否与会员信息的姓名及身份认证的手机号一致，若为虚拟订单则判断接收电子码的手机号是否与会员身份认证的一致（如无身份认证手机号则不进行判断）
		</td>
		</tr>
      <tr>
       <td ><button type="submit" class="btn btn-primary radius">提交</button></td>        
      </tr>
    </table>
    <div style="border-top: 2px solid #ddd;">
	<table class="table">
		<tr>
			<td width="150px">最后修改人：${log.lastModifyName }</td>
			<td>修改时间：${log.lastModifyDate?string("yyyy-MM-dd HH:mm:ss")}</td>
		</tr>
	</table>
	</div>
    </div>
</form>
    
</div>
<@frame.end "default">
</@frame.end>
<script type="text/javascript" src="${contextPath}/resources/js/monitor/monitor_info.js"></script>
<script type="text/javascript">
var path="${contextPath}";
</script>